package com.example.safeassistan.ui.login.adapter;

import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;


import com.example.safeassistan.ui.login.fragment.GuideFragment;

import java.util.List;


public class GuideAdapter extends FragmentPagerAdapter {

    private final List<Integer> imgs;

    public GuideAdapter(FragmentManager fm, List<Integer> imgs) {
        super(fm);
        this.imgs = imgs;
    }

    @Override
    public Fragment getItem(int i) {
        GuideFragment gf = new GuideFragment(i, imgs);
        return gf;
    }

    @Override
    public int getCount() {
        return imgs.size();
    }
}
